package com.szxy.hotel.service;

import com.szxy.hotel.entity.Consume;
import com.szxy.hotel.mapper.ConsumeMapper;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("statementService")
public class StatementService {
    @Resource
    ConsumeMapper consumeMapper;

    public List<Consume> findByPage(int start, int size) {
        return consumeMapper.findByPage(start,size);
    }

    public List<Consume> selectCount() {
        return consumeMapper.selectCount();
    }

    public List<Consume> findByPageDate(int start, int size, String consumeDate) {
        return consumeMapper.findByPageDate(start,size,consumeDate);
    }

    public List<Consume> selectCountDate(String consumeDate) {
        return consumeMapper.selectCountDate(consumeDate);
    }

    public List<Consume> findByPageMonth(int start, int size, String my, String mm) {
        return consumeMapper.findByPageMonth(start,size,my,mm);
    }

    public List<Consume> selectCountMonth(String my, String mm) {
        return consumeMapper.selectCountMonth(my,mm);
    }

    public List<Consume> findByPageYear(int start, int size, String yy) {
        return consumeMapper.findByPageYear(start,size,yy);
    }

    public List<Consume> selectCountYear(String yy) {
        return consumeMapper.selectCountYear(yy);
    }
}
